package com.example.studentcompetitionplatform.mapper;

import com.example.studentcompetitionplatform.entity.Competitions;
import com.example.studentcompetitionplatform.entity.Registrations;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface JingSaiBaoMingMapper {
//报名
    //查询是否已经报过名
    Registrations findRegistrations(Registrations registrations);
    //进行报名
    Integer insertRegistrations(Registrations registrations);
//分页数据
    //查询competition_id的数据的总条数
    Integer findCompetitionTotal(Integer competitionId);
    //
    List<Competitions> selectPage(@Param("pageNum") Integer pageNum, @Param("pageSize") Integer pageSize, @Param("competitionId") Integer competitionId);
}
